//
//  Contact.h
//  OC6_作业练习
//
//  Created by dllo on 15/11/1.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Contact : NSObject

@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *sex;
@property (nonatomic, copy) NSString *phone;
@property (nonatomic, copy) NSString *address;
@property (nonatomic, copy) NSString *group;
@property (nonatomic, assign) NSInteger age;

- (id)initWithName:(NSString *)name sex:(NSString *)sex phone:(NSString *)phone address:(NSString *)address group:(NSString *)group age:(NSInteger)age;

- (NSComparisonResult)compareByName:(Contact *)contact;

- (NSComparisonResult)compareByAge:(Contact *)contact;


@end
